import request from '@/utils/request'

// 创建职能管理矩阵 
export function createBusinessManagerMatrix(data) {
  return request({
    url: '/sa/business-manager-matrix/create',
    method: 'post',
    data: data
  })
}

// 更新职能管理矩阵 
export function updateBusinessManagerMatrix(data) {
  return request({
    url: '/sa/business-manager-matrix/update',
    method: 'put',
    data: data
  })
}

// 删除职能管理矩阵 
export function deleteBusinessManagerMatrix(id) {
  return request({
    url: '/sa/business-manager-matrix/delete?id=' + id,
    method: 'delete'
  })
}

// 获得职能管理矩阵 
export function getBusinessManagerMatrix(id) {
  return request({
    url: '/sa/business-manager-matrix/get?id=' + id,
    method: 'get'
  })
}

// 获得职能管理矩阵 分页
export function getBusinessManagerMatrixPage(query) {
  return request({
    url: '/sa/business-manager-matrix/page',
    method: 'get',
    params: query
  })
}

// 导出职能管理矩阵  Excel
export function exportBusinessManagerMatrixExcel(query) {
  return request({
    url: '/sa/business-manager-matrix/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
